package com.chukun.disruptor.higher.chain;


import com.lmax.disruptor.EventHandler;

/**
 * handler2: 设置name
 */
public class EventHandlerTaskTwo implements EventHandler<Trade> {

    @Override
    public void onEvent(Trade trade, long l, boolean b) throws Exception {
        trade.setTradeName("EventHandlerTaskTwo");
        System.out.println("set name :"+trade.getTradeName());
        Thread.sleep(1000);
    }
}
